import { Global, Module } from "@nestjs/common";
import { ConfigModule } from "@nestjs/config";

import { configModules } from "./configurations";

@Global()
@Module({
    imports: [
        ConfigModule.forRoot({
            isGlobal: true,
            ignoreEnvFile: true, // 禁止加载 .env 文件，而是想简单地从运行时环境访问环境变量
            load: configModules
        })
    ]
})
export class CoreConfigModule {}
